home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 June
/
PCWorld_2004-06_cd.bin
/
software
/
vyzkuste
/
koolmoves
/
kmsetup.exe
/
{app}
/
Motion Scripts
/
Elastic
/
effect2.txt
Wrap
Text File
|
2004-03-21
|
610b
|
27 lines
// main_init function
main_init = function(mc){
subs_done = true;
bounds = mc.getBounds(mc);
disp = opposite ? $padding / 2 -bounds.xMax : - $padding / 2 - bounds.xMin;
deg = quick_return ? deg90 : deg180;
}
// main_effect function
main_effect = function(mc,frame){
mc._xscale = 100 + Math.sin (deg * (frame % effectspeed)/(effectspeed-1)) * (maxscale - 100);
mc._x = (mc._xscale - 100) / 100 * disp;
if ((frame / effectspeed) == cycles) end_effect = true;
}
// sub_init function
sub_init = function(mc){
}
// sub_effect function
sub_effect = function(mc,frame){
}